package com.example.springbootdeom.service;

import com.example.springbootdeom.entity.*;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ManageService {
    public boolean addUser(User u);
    public boolean deleteUser(int id);
    public List<User> getUser();
    public boolean modify(User u);

    //新增加几个小功能
    //加入班级(需要传用户id 加入成功返回true)
    public boolean addClass(int id);
    //查询所有班级
    public List<Classs> getAllClass();
    //查询全校的课程
    public List<Course> getAllCourse();
    public boolean setPassword(String password,int id);

    public String getOldPassword(int id);
//    获取全部学生、老师
    public List<Student> getStudent();
    public List<Teacher> getTeacher();

}
